<template>
  <div>{{ result }}</div>
</template>

<script>
export default {
  data() {
    return {
      result: ''
    }
  },
  mounted() {
    wx.scanCode({
      success: (res) => {
        this.result = res.result
      }
    })
  }
}
</script>
